using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QLKS.DTO;
using QLKS.DAO;

namespace QLKS.BUS
{
    public class Phong_BUS
    {
        Phong_DAO obj = new Phong_DAO();

        //danh sach tat ca cac phong
        public DataTable GetPhong()
        {
            return obj.GetPhong();
        }

        //lay phong theo ma
        public DataTable GetPhong(Phong_DTO p)
        {
            return obj.GetPhong(p);
        }

        //danh sach phong trong
        public DataTable PhongTrong()
        {
            return obj.PhongTrong();
        }

        //dem so phong trong
        public int CountPhong()
        {
            return obj.CountPhong();
        }

        //cap nhat trang thai phong
        public Boolean UPATE_TrangThaiPhong(Phong_DTO p)
        {
            return obj.UPATE_TrangThaiPhong(p);
        }
    }
}
